import {fromJS} from "immutable";
import {save_nav_data} from "./constants";


const defaultState =fromJS({
    navDataList:[],

});

export default (state = defaultState,action)=>{

    switch (action.type) {
        case save_nav_data:
            return state.set("navDataList",fromJS(action.data));

        default:
            return state;
    }

}